package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.QuestionsAndAnswers;
import cn.wolfcode.trip.base.domain.QuestionsContent;
import cn.wolfcode.trip.base.query.QuestionsAndAnswersQueryObject;

import java.util.List;

public interface QuestionsAndAnswersMapper {

    int insert(QuestionsAndAnswers entity);

    QuestionsAndAnswers selectByPrimaryKey(Long id);

    List<QuestionsAndAnswers> selectAll();

    void updateByPrimaryKey(QuestionsContent questionsContent);

    /**
     * 按照要求分查询问题信息
     * @param qo
     * @return
     */
    List<QuestionsAndAnswers> selectForList(QuestionsAndAnswersQueryObject qo);
}